<%--
  Created by IntelliJ IDEA.
  User: qpxbo
  Date: 2019/12/5
  Time: 11:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<table class="table">
    <caption>基本的表格布局jsp</caption>
    <thead>
    <tr>
        <th>id</th>
        <th>名称</th>
        <th>用户名</th>
        <th>性别</th>
    </tr>
    </thead>
    <tbody>
        <c:forEach items="${users.records}" var="user">
    <tr>
        <td>${user.id}</td>
        <td>${user.name}</td>
        <td>${user.username}</td>
        <td>${user.enabled==0?'无效':'有效'}
    </td>
    </tr>
        </c:forEach>    </tbody>
</table>
</body>
</html>
